package com.mioto.ld.module.log.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author mioto-qinxj
 * @date 2024/5/6
 * @desc
 */
@Data
@ApiModel(value = "业务日志")
public class BizLog implements Serializable {

    private static final long serialVersionUID= BizLog.class.getName().hashCode();
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "操作模块名")
    private String moduleName;

    @ApiModelProperty(value = "操作ip")
    private String ip;

    @ApiModelProperty(value = "操作类型")
    private String operationType;

    @ApiModelProperty(value = "描述")
    private String desc;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;
}
